<?php

namespace app\home\controller;

use app\Base;
use app\middleware\LoginCheck;
use app\Request;

class Login extends Base
{
    protected array $middleware = [LoginCheck::class];

    public function index()
    {
        echo '请登陆';
    }

    public function check(Request $request)
    {

//        dd($request->name);
//        return json(['code' => 1]);
    }

    public function register()
    {

    }
}

?>